<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <button id="btn" onclick="btnClicked()">按钮</button>
</body>
<script>
        // 高度不包含浏览器的 标题 和地址工具栏的  宽度不包含纵向 滚动条
        window.document.write('宽度:'+window.innerWidth+"高度:"+window.innerHeight);

        function btnClicked() {
            window.open("1.JS内置对象.html","windowname","height=200,width=400,top=100,left=100,toolbar=no,menubar=no")
            // window.close();
        }
    </script>
</html>